/* ============================================
   SHOP PAGE SPECIFIC STYLES
   ============================================ */

/* Hero Section (Matches Gear Hub) */
.shop-hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-section) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(57, 160, 120, 0.15) 0%, transparent 50%);
}

.shop-hero .container {
    position: relative;
    z-index: 1;
}

.shop-hero h1 {
    font-size: 3.5rem;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    background: rgba(57, 160, 120, 0.15);
    color: #39A078;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Category Navigation (Matches Gear Hub Pills) */
.shop-categories {
    background: var(--bg-section);
    padding: 2rem 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    /* Remove gap */
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-body);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-family: var(--font-primary);
}

.category-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
    box-shadow: 0 4px 15px rgba(57, 160, 120, 0.3);
}

/* Shop Section & Grid */
.shop-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.shop-section:nth-child(even) {
    background: var(--bg-section);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* Shop Features (Matches Gear Stats/Features) */
.shop-features {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(57, 160, 120, 0.05), rgba(201, 169, 97, 0.05));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature-item {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-green);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h4 {
    color: var(--text-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Newsletter Section (Matches Gear Newsletter) */
.newsletter-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.newsletter-content {
    background: linear-gradient(135deg, var(--bg-section), var(--bg-primary));
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.newsletter-content h2 {
    font-size: 2rem;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--text-body);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-body);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #2d8060;
    transform: translateY(-2px);
}

.newsletter-note {
    font-size: 0.9rem !important;
    opacity: 0.7;
    margin-bottom: 0 !important;
}

/* Card Styles are shared from affiliate.css now, but overrides if needed */
/* Card Styles (Matches Affiliate Card Design) */
.product-card {
    background: var(--bg-primary);
    /* Was #FFFFFF, using var for dark mode safety */
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.85rem;
    color: var(--accent-green);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    /* Push footer down */
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}

.product-price .original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-cta {
    background: var(--accent-green);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-cta:hover {
    background: #2d8060;
    transform: translateY(-2px);
}

/* Badge */
.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    color: white;
}

.product-badge.new {
    background: var(--accent-green);
}

.product-badge.sale {
    background: var(--accent-red);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .shop-hero {
        padding: 8rem 0 4rem;
    }

    .shop-hero h1 {
        font-size: 2.2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .category-nav {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}